<?php
namespace app\jiyun\service\base;

use app\common\model\admin\service_config\ServiceConfigData;
use app\common\model\admin\service_config\ServiceConfigTabAccount;

class ConfigService
{

    public static $instance=[];

    public static function instance()
    {
        //如果不存在实例，则返回实例
        if (empty(self::$instance)) {

            self::$instance = new static();
        }
        return self::$instance;
    }

    /**
     * 获得快递
     *
     * @param int $account_id 公司id
     * @return array
     */
    public function getExpress ($account_id) :array
    {
        return ServiceConfigTabAccount::where('type', 'express')->where('account_id', $account_id)->column('alias_name', 'id');
    }
}

?>